﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020013ED RID: 5101
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TrainPartyGameInfo : IMessage<TrainPartyGameInfo>, IMessage, IEquatable<TrainPartyGameInfo>, IDeepCloneable<TrainPartyGameInfo>, IBufferMessage
	{
		// Token: 0x17004050 RID: 16464
		// (get) Token: 0x0600E46A RID: 58474 RVA: 0x00262AC6 File Offset: 0x00260CC6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TrainPartyGameInfo> Parser
		{
			get
			{
				return TrainPartyGameInfo._parser;
			}
		}

		// Token: 0x17004051 RID: 16465
		// (get) Token: 0x0600E46B RID: 58475 RVA: 0x00262ACD File Offset: 0x00260CCD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TrainPartyGameInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17004052 RID: 16466
		// (get) Token: 0x0600E46C RID: 58476 RVA: 0x00262ADF File Offset: 0x00260CDF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TrainPartyGameInfo.Descriptor;
			}
		}

		// Token: 0x0600E46D RID: 58477 RVA: 0x00262AE6 File Offset: 0x00260CE6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyGameInfo()
		{
		}

		// Token: 0x0600E46E RID: 58478 RVA: 0x00262AF0 File Offset: 0x00260CF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyGameInfo(TrainPartyGameInfo other) : this()
		{
			this.trainPartyItemInfo_ = ((other.trainPartyItemInfo_ != null) ? other.trainPartyItemInfo_.Clone() : null);
			this.trainPassengerInfo_ = ((other.trainPassengerInfo_ != null) ? other.trainPassengerInfo_.Clone() : null);
			this.teamId_ = other.teamId_;
			this.trainPartyGridInfo_ = ((other.trainPartyGridInfo_ != null) ? other.trainPartyGridInfo_.Clone() : null);
			this.trainActionInfo_ = ((other.trainActionInfo_ != null) ? other.trainActionInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600E46F RID: 58479 RVA: 0x00262B90 File Offset: 0x00260D90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyGameInfo Clone()
		{
			return new TrainPartyGameInfo(this);
		}

		// Token: 0x17004053 RID: 16467
		// (get) Token: 0x0600E470 RID: 58480 RVA: 0x00262B98 File Offset: 0x00260D98
		// (set) Token: 0x0600E471 RID: 58481 RVA: 0x00262BA0 File Offset: 0x00260DA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyGameItemInfo TrainPartyItemInfo
		{
			get
			{
				return this.trainPartyItemInfo_;
			}
			set
			{
				this.trainPartyItemInfo_ = value;
			}
		}

		// Token: 0x17004054 RID: 16468
		// (get) Token: 0x0600E472 RID: 58482 RVA: 0x00262BA9 File Offset: 0x00260DA9
		// (set) Token: 0x0600E473 RID: 58483 RVA: 0x00262BB1 File Offset: 0x00260DB1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyGamePassengerInfo TrainPassengerInfo
		{
			get
			{
				return this.trainPassengerInfo_;
			}
			set
			{
				this.trainPassengerInfo_ = value;
			}
		}

		// Token: 0x17004055 RID: 16469
		// (get) Token: 0x0600E474 RID: 58484 RVA: 0x00262BBA File Offset: 0x00260DBA
		// (set) Token: 0x0600E475 RID: 58485 RVA: 0x00262BC2 File Offset: 0x00260DC2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint TeamId
		{
			get
			{
				return this.teamId_;
			}
			set
			{
				this.teamId_ = value;
			}
		}

		// Token: 0x17004056 RID: 16470
		// (get) Token: 0x0600E476 RID: 58486 RVA: 0x00262BCB File Offset: 0x00260DCB
		// (set) Token: 0x0600E477 RID: 58487 RVA: 0x00262BD3 File Offset: 0x00260DD3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyGameGridInfo TrainPartyGridInfo
		{
			get
			{
				return this.trainPartyGridInfo_;
			}
			set
			{
				this.trainPartyGridInfo_ = value;
			}
		}

		// Token: 0x17004057 RID: 16471
		// (get) Token: 0x0600E478 RID: 58488 RVA: 0x00262BDC File Offset: 0x00260DDC
		// (set) Token: 0x0600E479 RID: 58489 RVA: 0x00262BE4 File Offset: 0x00260DE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyActionInfo TrainActionInfo
		{
			get
			{
				return this.trainActionInfo_;
			}
			set
			{
				this.trainActionInfo_ = value;
			}
		}

		// Token: 0x0600E47A RID: 58490 RVA: 0x00262BED File Offset: 0x00260DED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TrainPartyGameInfo);
		}

		// Token: 0x0600E47B RID: 58491 RVA: 0x00262BFC File Offset: 0x00260DFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TrainPartyGameInfo other)
		{
			return other != null && (other == this || (object.Equals(this.TrainPartyItemInfo, other.TrainPartyItemInfo) && object.Equals(this.TrainPassengerInfo, other.TrainPassengerInfo) && this.TeamId == other.TeamId && object.Equals(this.TrainPartyGridInfo, other.TrainPartyGridInfo) && object.Equals(this.TrainActionInfo, other.TrainActionInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600E47C RID: 58492 RVA: 0x00262C8C File Offset: 0x00260E8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.trainPartyItemInfo_ != null)
			{
				num ^= this.TrainPartyItemInfo.GetHashCode();
			}
			if (this.trainPassengerInfo_ != null)
			{
				num ^= this.TrainPassengerInfo.GetHashCode();
			}
			if (this.TeamId != 0U)
			{
				num ^= this.TeamId.GetHashCode();
			}
			if (this.trainPartyGridInfo_ != null)
			{
				num ^= this.TrainPartyGridInfo.GetHashCode();
			}
			if (this.trainActionInfo_ != null)
			{
				num ^= this.TrainActionInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600E47D RID: 58493 RVA: 0x00262D23 File Offset: 0x00260F23
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600E47E RID: 58494 RVA: 0x00262D2B File Offset: 0x00260F2B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600E47F RID: 58495 RVA: 0x00262D34 File Offset: 0x00260F34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.trainActionInfo_ != null)
			{
				output.WriteRawTag(34);
				output.WriteMessage(this.TrainActionInfo);
			}
			if (this.TeamId != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.TeamId);
			}
			if (this.trainPartyGridInfo_ != null)
			{
				output.WriteRawTag(58);
				output.WriteMessage(this.TrainPartyGridInfo);
			}
			if (this.trainPassengerInfo_ != null)
			{
				output.WriteRawTag(82);
				output.WriteMessage(this.TrainPassengerInfo);
			}
			if (this.trainPartyItemInfo_ != null)
			{
				output.WriteRawTag(122);
				output.WriteMessage(this.TrainPartyItemInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600E480 RID: 58496 RVA: 0x00262DE4 File Offset: 0x00260FE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.trainPartyItemInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.TrainPartyItemInfo);
			}
			if (this.trainPassengerInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.TrainPassengerInfo);
			}
			if (this.TeamId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.TeamId);
			}
			if (this.trainPartyGridInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.TrainPartyGridInfo);
			}
			if (this.trainActionInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.TrainActionInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600E481 RID: 58497 RVA: 0x00262E84 File Offset: 0x00261084
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TrainPartyGameInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.trainPartyItemInfo_ != null)
			{
				if (this.trainPartyItemInfo_ == null)
				{
					this.TrainPartyItemInfo = new TrainPartyGameItemInfo();
				}
				this.TrainPartyItemInfo.MergeFrom(other.TrainPartyItemInfo);
			}
			if (other.trainPassengerInfo_ != null)
			{
				if (this.trainPassengerInfo_ == null)
				{
					this.TrainPassengerInfo = new TrainPartyGamePassengerInfo();
				}
				this.TrainPassengerInfo.MergeFrom(other.TrainPassengerInfo);
			}
			if (other.TeamId != 0U)
			{
				this.TeamId = other.TeamId;
			}
			if (other.trainPartyGridInfo_ != null)
			{
				if (this.trainPartyGridInfo_ == null)
				{
					this.TrainPartyGridInfo = new TrainPartyGameGridInfo();
				}
				this.TrainPartyGridInfo.MergeFrom(other.TrainPartyGridInfo);
			}
			if (other.trainActionInfo_ != null)
			{
				if (this.trainActionInfo_ == null)
				{
					this.TrainActionInfo = new TrainPartyActionInfo();
				}
				this.TrainActionInfo.MergeFrom(other.TrainActionInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600E482 RID: 58498 RVA: 0x00262F70 File Offset: 0x00261170
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600E483 RID: 58499 RVA: 0x00262F7C File Offset: 0x0026117C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 40U)
				{
					if (num == 34U)
					{
						if (this.trainActionInfo_ == null)
						{
							this.TrainActionInfo = new TrainPartyActionInfo();
						}
						input.ReadMessage(this.TrainActionInfo);
						continue;
					}
					if (num == 40U)
					{
						this.TeamId = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 58U)
					{
						if (this.trainPartyGridInfo_ == null)
						{
							this.TrainPartyGridInfo = new TrainPartyGameGridInfo();
						}
						input.ReadMessage(this.TrainPartyGridInfo);
						continue;
					}
					if (num == 82U)
					{
						if (this.trainPassengerInfo_ == null)
						{
							this.TrainPassengerInfo = new TrainPartyGamePassengerInfo();
						}
						input.ReadMessage(this.TrainPassengerInfo);
						continue;
					}
					if (num == 122U)
					{
						if (this.trainPartyItemInfo_ == null)
						{
							this.TrainPartyItemInfo = new TrainPartyGameItemInfo();
						}
						input.ReadMessage(this.TrainPartyItemInfo);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04005A60 RID: 23136
		private static readonly MessageParser<TrainPartyGameInfo> _parser = new MessageParser<TrainPartyGameInfo>(() => new TrainPartyGameInfo());

		// Token: 0x04005A61 RID: 23137
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005A62 RID: 23138
		public const int TrainPartyItemInfoFieldNumber = 15;

		// Token: 0x04005A63 RID: 23139
		private TrainPartyGameItemInfo trainPartyItemInfo_;

		// Token: 0x04005A64 RID: 23140
		public const int TrainPassengerInfoFieldNumber = 10;

		// Token: 0x04005A65 RID: 23141
		private TrainPartyGamePassengerInfo trainPassengerInfo_;

		// Token: 0x04005A66 RID: 23142
		public const int TeamIdFieldNumber = 5;

		// Token: 0x04005A67 RID: 23143
		private uint teamId_;

		// Token: 0x04005A68 RID: 23144
		public const int TrainPartyGridInfoFieldNumber = 7;

		// Token: 0x04005A69 RID: 23145
		private TrainPartyGameGridInfo trainPartyGridInfo_;

		// Token: 0x04005A6A RID: 23146
		public const int TrainActionInfoFieldNumber = 4;

		// Token: 0x04005A6B RID: 23147
		private TrainPartyActionInfo trainActionInfo_;
	}
}
